﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using MasterDetailTemplate.Services;
using MasterDetailTemplate.Services.Implementations;
using Moq;

namespace MasterDetailTemplate.UnitTest.Helpers
{
    /// <summary>
    /// 搜索页ViewModel帮助类。
    /// By FJH
    /// </summary>
    public static class SearchPageViewModelHelper
    {
        /// <summary>
        /// 获得内容页导航服务。
        /// </summary>
        public static async Task<ContentNavigationService> GetContentNavigationService()
        {
            var contentNavigationService =
                new ContentNavigationService(new Mock<IContentPageActivationService>().Object);
            return contentNavigationService;
        }

        public static async Task<RootNavigationService> GetRootNavigationService()
        {
            var rootNavigationService =
                new RootNavigationService(new Mock<IRootPageActivationService>().Object);
            return rootNavigationService;
        }
        
    }
}
